package com.wing.cabinet.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.cabinet.model.entity.UseInventoryUserKnife;
import com.wing.cabinet.model.request.UseInventoryUserKnifeForm;
import com.wing.cabinet.model.response.UseInventoryInoutVO;
import com.wing.cabinet.model.response.UseInventoryUserKnifeVO;

import java.util.List;
import java.util.Map;

/**
 * 刀具编号-Service
 *
 * @author
 */
public interface UseInventoryUserKnifeService extends IService<UseInventoryUserKnife> {

    /**
     * 添加
     *
     * @param useInventoryUserKnifeForm
     * @return
     */
    int add(UseInventoryUserKnifeForm useInventoryUserKnifeForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<UseInventoryUserKnifeVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<UseInventoryUserKnifeVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    UseInventoryUserKnifeVO get4appById(Long id);

    int updateKnife(UseInventoryUserKnife useInventoryUserKnife);

    List<UseInventoryUserKnifeVO> getNoRepayKnife(List<UseInventoryUserKnifeVO> records);

    IPage<UseInventoryUserKnifeVO> pageList(Page page, Map<String, Object> params);

    List<String> listByParentCodes(List<String> parentCodes);
}
